package com.amt.util;


import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @Title: LogUtil
 * @Package com.amt.util
 * @Description: TODO(日志工具类)
 * @Author 江伟
 * @Date 2021/6/29 15:20
 * Copyright (c) 1994-2021 Scjydz.com All Rights Reserved.
 **/
@Component
@Slf4j
public class LogUtil {

    // 闲时每次批量插入的数量
    public static final int BATCH_COUNT_FREE = 30;
    // 报错次数时间值（秒） 默认 1小时
    public static final int ERROR_COUNT_TIME = 3600;
    // 报警短信key时效（秒） 默认 1小时
    public static final int ALARM_MESSAGE_TIME = 3600;
    // 错误日志数量key
    public static final String LOG_BACKSTAGE_ERROR = "log_platform_error_";
    public static final String KEY_ALARM_MESSAGE = "_alarm_msg";
    public static final String KEY_ALARM_MESSAGE_END = "_alarm_msg_end";
    // 报错次数最小阀值
    public static int ERROR_COUNT_MIN = 20;
    // 报错次数最大阀值
    public static int ERROR_COUNT_MAX = 40;
    // 日志大面积错误阀值
    public static int LARGE_AREA_FLAG = 20;



    /**
     * 批量插入日志信息
     *
     * @param
     * @return
     */
    public boolean addInfoLog() {

        return false;
    }




}
